﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace P11.OdbcSpy
{
    public interface IOdbcSpyServer
    {
        void Configure(object settings);
        void RegisterTable(Type type, RowChangedEventHandler handler);
        void Start();
        void Stop();
    }

    public delegate void RowChangedEventHandler(Type type, object row);


	[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
	public class CustomFieldAttribute : Attribute
	{
		public CustomFieldAttribute(string fieldName)
		{
			Name = fieldName;
		}

		public string Name;
	}
	
	[AttributeUsage(AttributeTargets.Class)]
	public class CustomTableAttribute : Attribute
	{
		public CustomTableAttribute(string tableName)
		{
			Name = tableName;
		}

		public string Name;
	}
}
